package top.zhdev.community.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * 用户信息表 user
 */
public class User {
    /** id */
    private Integer id;

    /** 用户名 */
    private String username;

    /** 密钥 */
    private String password;

    /** 加密盐 */
    private String salt;

    /** 邮箱 */
    private String email;

    /**  用户类型 0-普通用户; 1-超级管理员; 2-版主 */
    private Integer type;

    /** 用户状态 0-未激活; 1-已激活 */
    private Integer status;

    /** 激活码 */
    private String activationCode;

    /** url */
    private String headerUrl;

    /** 创建日期 */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getActivationCode() {
        return activationCode;
    }

    public void setActivationCode(String activationCode) {
        this.activationCode = activationCode;
    }

    public String getHeaderUrl() {
        return headerUrl;
    }

    public void setHeaderUrl(String headerUrl) {
        this.headerUrl = headerUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
